package com.pan.admin.module.api.dao;

import com.pan.admin.module.api.entity.ApiDataExchangeBacklist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DataExchangeBacklistDao接口
 *
 * @author ZJQ
 * @date 2024-10-25
 */
@Mapper
public interface ApiDataExchangeBacklistDao {

    /**
     * 查询撞库黑名单数据列表
     *
     * @param apiDataExchangeBacklist 撞库黑名单数据列表
     * @return ApiDataExchangeBacklist集合
     */
    List<ApiDataExchangeBacklist> list(@Param("list") List<String> apiDataExchangeBacklist);

    /**
     * 新增撞库黑名单数据
     *
     * @param ApiDataExchangeBacklist 撞库黑名单数据
     * @return 结果
     */
    int insetApiDataExchangeBacklist(List<ApiDataExchangeBacklist> ApiDataExchangeBacklist);

    /**
     * 修改撞库黑名单数据数据
     *
     * @param apiDataExchangeBacklist 撞库黑名单数据
     * @return int
     */
    int updateApiDataExchangeBacklist(ApiDataExchangeBacklist apiDataExchangeBacklist);

    /**
     * 删除撞库黑名单数据
     *
     * @param id 撞库黑名单数据主键
     * @return int
     */
    int deleteById(Long id);

}
